home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’95 / Closure / Sources / GX Headers / layout library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-24  |  4.1 KB  |  127 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        layout library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef layoutLibraryIncludes
  13. #define layoutLibraryIncludes
  14.  
  15. #ifndef powerc
  16.  #pragma pointers_in_D0                            
  17. #endif
  18.  
  19.     #ifndef graphicsRoutinesIncludes
  20. #include "graphics routines.h"
  21. /*    #include "graphics types.h"                                    */
  22. /*        #include "math types.h"                                    */
  23. /*            #include <Types.h>                                    */
  24. /*                #include <ConditionalMacros.h>                    */
  25. /*                #include <MixedMode.h>                            */
  26. /*                    #include <Traps.h>                            */
  27. /*    #include "graphics errors.h"                                */
  28. /*        #include "Types.h"                                        */
  29. /*    #include "font types.h"                                        */
  30. /*    #include "graphics linkage.h"                                */
  31.     #endif
  32.  
  33.     #ifndef layoutTypesIncludes
  34. #include "layout types.h"
  35.     #endif
  36.     
  37. #ifndef powerc
  38.  #pragma pointers_in_A0                            
  39. #endif
  40.  
  41.     #ifdef __cplusplus
  42. extern "C" {
  43.     #endif
  44.  
  45. #if defined(powerc) || defined (__powerc)
  46. #pragma options align=mac68k
  47. #endif
  48. struct StyleRunOverrides {
  49.     gxPriorityJustificationOverride *priorityJustOverride;
  50.     gxGlyphJustificationOverride *glyphJustOverrides;
  51.     long                        glyphJustOverridesCount;
  52.     gxGlyphSubstitution            *glyphSubstitutions;
  53.     long                        glyphSubstitutionsCount;
  54.     gxKerningAdjustment            *kerningAdjustments;
  55.     long                        kerningAdjustmentsCount;
  56. };
  57. #if defined(powerc) || defined(__powerc)
  58. #pragma options align=reset
  59. #endif
  60.  
  61. #if defined(powerc) || defined (__powerc)
  62. #pragma options align=mac68k
  63. #endif
  64. struct ParagraphRecord {
  65.     short                        nLayouts;
  66.     Fixed                        totalHeight;
  67.     gxShape                        layouts[1];
  68. };
  69. #if defined(powerc) || defined(__powerc)
  70. #pragma options align=reset
  71. #endif
  72.  
  73. typedef struct ParagraphRecord **ParagraphRecordHandle;
  74.  
  75. #if defined(powerc) || defined (__powerc)
  76. #pragma options align=mac68k
  77. #endif
  78. struct RunFeatureTypeName {
  79.     gxRunFeatureType            featureType;
  80.     unsigned short                nSelectors;
  81.     unsigned short                selectorTableOffset;
  82.     short                        nameIndex;
  83. };
  84. #if defined(powerc) || defined(__powerc)
  85. #pragma options align=reset
  86. #endif
  87.  
  88. #if defined(powerc) || defined (__powerc)
  89. #pragma options align=mac68k
  90. #endif
  91. struct RunFeatureSelectorName {
  92.     gxRunFeatureSelector        featureSelector;
  93.     short                        nameIndex;
  94. };
  95. #if defined(powerc) || defined(__powerc)
  96. #pragma options align=reset
  97. #endif
  98.  
  99.     #ifndef __cplusplus
  100. typedef struct StyleRunOverrides StyleRunOverrides;
  101.  
  102. typedef struct ParagraphRecord ParagraphRecord;
  103.  
  104. typedef struct RunFeatureTypeName RunFeatureTypeName;
  105.  
  106. typedef struct RunFeatureSelectorName RunFeatureSelectorName;
  107.  
  108.     #endif
  109.  
  110. extern void InitializeRunControls(gxRunControls *runControls);
  111. extern void InitializeLayoutOptions(gxLayoutOptions *layoutOptions);
  112. extern void InitializeStyleRunOverrides(StyleRunOverrides *overrides);
  113. extern void SetDefaultPriorityJustOverride(gxPriorityJustificationOverride *override);
  114. extern void SetLayoutStyle(gxStyle s, long txFont, long txFace, Fixed textSize, gxTextAttribute attr, gxRunControls *runControls, gxRunFeature runFeatures[], long runFeaturesCount, StyleRunOverrides *overrides);
  115. extern gxStyle NewLayoutStyle(long txFont, long txFace, Fixed textSize, gxTextAttribute attr, gxRunControls *runControls, gxRunFeature runFeatures[], long runFeaturesCount, StyleRunOverrides *overrides);
  116. extern gxShape NewSingleLayout(char *text, char *gxFontName, Fixed textSize, gxLayoutOptions *options, gxPoint *position, gxTextAttribute attr, gxRunControls *runControls, gxRunFeature runFeatures[], long runFeaturesCount, StyleRunOverrides *overrides);
  117. extern ParagraphRecordHandle NewParagraph(char *text, gxStyle baseStyle, Fixed width, long justified, Fixed lineHeight, gxPoint *firstOrigin);
  118. extern ParagraphRecordHandle NewStyledParagraph(long textRunCount, const void *text[], const short textRunLengths[], long styleRunCount, const gxStyle styles[], const short styleRunLengths[], long levelRunCount, const short levels[], const short levelRunLengths[], long totalByteCount, const gxLayoutOptions *layoutOptions, Fixed lineHeight, const gxPoint *firstOrigin);
  119. extern void DisposeParagraph(ParagraphRecordHandle paraRec);
  120. extern gxShape GetLayoutBounds(gxShape layout);
  121.     #ifdef __cplusplus
  122. }
  123.     #endif
  124.  
  125. #endif
  126.  
  127.